package com.activiti.flow.model.dto;

/**
 * @author pisory
 * @version 1.0
 * @date 2020-04-03
 */
public class ModelDTO {

    public static void main(String[] args) {
        System.out.println(fact(6));
    }

    public static int fact(int num){
        if(num < 1){
            return 1;
        }
        return num * fact(num -1);
    }
}
